import Mock from 'mockjs'
// 导入mock对象
//json文件可以不用对外暴露 ，即可直接引用 
import banner from './banner.json'
import floor from './floor.json'

//第一个参数请求地址，第二个参数：请求数据
Mock.mock("/mock/banner",{
  code:200,
  data:banner
})

Mock.mock("/mock/floor",{
  code:200,
  data:floor
})